package cz.artin.gemini.admin.core;

import java.util.ArrayList;
import java.util.List;

import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.inject.Inject;

import cz.artin.gemini.admin.api.AdminService;
import cz.artin.gemini.admin.persist.user.dao.UserDao;
import cz.artin.gemini.shared.domain.admin.User;

@Stateless
@Remote(AdminService.class)
public class AdminServiceImpl implements AdminService {

	//@Inject
	//private UserDao userDao;
	
	@Override
	public List<User> listUsers() {
		//List<User> result = userDao.listUsers();
		//return result;
		
		List<User> result = new ArrayList<>();
		
		User u1 = new User();
		u1.setUserId("ui 1");
		u1.setUserName("un 1");
		result.add(u1);

		User u2 = new User();
		u2.setUserId("ui 2");
		u2.setUserName("un 2");
		result.add(u2);

		return result;
	}
	
}
